From e42527954eec82f52422669a9d4c36e6c4f8438c Mon Sep 17 00:00:00 2001 From: Emmanuel Ackaouy Date: Wed, 31 Jan 2007 15:23:51 +0000 Subject: [PATCH] [TOOLS] Fix typos which breaks readnotes transparent gunzipping ... From: Gerd Hoffmann Signed-off-by: Emmanuel Ackaouy --- tools/xcutils/readnotes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/xcutils/readnotes.c b/tools/xcutils/readnotes.c index fac684014a..f3e412da4e 100644 --- a/tools/xcutils/readnotes.c +++ b/tools/xcutils/readnotes.c @@ -72,8 +72,8 @@ int main(int argc, char **argv) usize = xc_dom_check_gzip(image, st.st_size); if (usize) { - tmp = malloc(size); - xc_dom_do_gunzip(image, st.st_size, tmp, size); + tmp = malloc(usize); + xc_dom_do_gunzip(image, st.st_size, tmp, usize); image = tmp; size = usize; } -- 2.30.2